import request from '@/utils/request'

export function getGiftSystemListAPI(params) {
  return request({
    url: '/admin/prize/queryprize',
    method: 'get',
    params
  })
}

// 添加礼物
export function addGiftSystemAPI(params) {
  return request({
    url: '/admin/prize/addprize',
    method: 'post',
    params
  })
}


// 上下架礼物
export function obtainedGiftSystemAPI(params) {
  return request({
    url: '/admin/prize/updateprizestatus',
    method: 'post',
    params
  })
}

// 根据id查询礼物
export function getGiftDetailAPI(params) {
  return request({
    url: '/admin/prize/queryprizeonid',
    method: 'get',
    params
  })
}
